// 基于准备好的dom，初始化echarts实例
var myChart6 = echarts.init(document.getElementById('main_6'));
// 指定图表的配置项和数据
var option6 = {
    title: {
        text: '偿债收入比',
        x: 'center',
        textStyle: {
            color: '#ADADAD',
            fontSize : 12
        },
    },
    tooltip: {
        trigger: 'axis',
        axisPointer: {
            type: 'shadow'
        },
        formatter: '{b0}:{c0}%'
    },
    legend: {
        data: ['经营性物业贷款占比'],
        bottom: "0",
        textStyle: {
            color : "#ADADAD"
        },
    },
    xAxis: {
        type: 'category',
        data: ['越秀区','从化区','增城区','白云区','海珠区','荔湾区','番禺区','天河区','花都区','黄埔区'],
        axisLine:{
            lineStyle:{
                color:'#ADADAD',
            }
        },

    },
    yAxis: {
        type: 'value',
        boundaryGap: [0, 0.01],
        axisLabel: {
            formatter: '{value}%'
        },
        axisLine:{
            lineStyle:{
                color:'#ADADAD',
            }
        },
    },
    series: [
        {
            name: '经营性物业贷款占比',
            type: 'bar',
            data: [21, 42, 43, 42, 76, 73,49,20,61,81]
        }
    ]

};
myChart6.setOption(option6);